package com.ourteam.education.domain;
/**
 * Template Name : DTO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Nov 30 16:49:33 CST 2018
 * Auto Generate Date : 2019-09-22 15:15:13
  * Warning ! This file will be overwrite when regenerate !
  * 
 */

import java.util.Map;
import java.util.HashMap;
import org.apache.commons.lang.ArrayUtils;
import org.apache.commons.beanutils.BeanMap;
import net.dao.IDataPopulateCallback;


public class CourseDefineBean implements java.io.Serializable {

        
	private static Map<String,String> mappedDaoFields = new HashMap<String,String>();
    
	private com.ourteam.education.dao.CourseDefine courseDefine;

	protected BeanMap getBeanMap(){
	
		return new BeanMap(courseDefine);
	}
	
	static{
				
												
		mappedDaoFields.put("id",com.ourteam.education.dao.ICourseDefineDAO.Id);
		
																																						
				
																
				
																
		mappedDaoFields.put("courseTypeId",com.ourteam.education.dao.ICourseDefineDAO.CourseTypeId);
		
																																		
				
																
				
																				
		mappedDaoFields.put("courseName",com.ourteam.education.dao.ICourseDefineDAO.CourseName);
		
																														
				
																
				
																								
		mappedDaoFields.put("schoolYear",com.ourteam.education.dao.ICourseDefineDAO.SchoolYear);
		
																										
				
																
				
																												
		mappedDaoFields.put("teachingMode",com.ourteam.education.dao.ICourseDefineDAO.TeachingMode);
		
																						
				
																
				
																																
		mappedDaoFields.put("chargingMode",com.ourteam.education.dao.ICourseDefineDAO.ChargingMode);
		
																		
				
																
				
																																				
		mappedDaoFields.put("status",com.ourteam.education.dao.ICourseDefineDAO.Status);
		
														
				
																
				
																																								
		mappedDaoFields.put("remarks",com.ourteam.education.dao.ICourseDefineDAO.Remarks);
		
										
				
																
				
																																										
				
										
		mappedDaoFields.put("courseTypeName",com.ourteam.education.dao.ICourseDefineDAO.CourseTypeName);
								
				
				
	}
	
	public static String getMappedDAOField(String aAttrName){
		return mappedDaoFields.get(aAttrName);
	}
	
	
	public CourseDefineBean() {
		super();
	    		
		this.courseDefine = new com.ourteam.education.dao.CourseDefine();
                
	}
	
		
	public CourseDefineBean(com.ourteam.education.dao.CourseDefine courseDefine) {
		super();
	
		this.courseDefine = courseDefine;
		
	}
		
		
		
    	
	public com.ourteam.education.dao.CourseDefine convertToCourseDefine(){
		return this.courseDefine;
	}
	
	public com.ourteam.education.dao.CourseDefine convertTo(){
		return this.courseDefine;
	}
	
			
		
			
			
		
	/**
	 * Get id
	 * 
	 * @return long
	 */
	public long getId(){
		return (long) this.courseDefine.getId();
	}
	
	/**
	 * Set id
	 * 
	 * @parameter long
	 */
	public void setId(long id){
		
		this.courseDefine.setId(id);
	}
		
																			
			
									
		
		
					
			
		
	/**
	 * Get courseTypeId
	 * 
	 * @return long
	 */
	public long getCourseTypeId(){
		return (long) this.courseDefine.getCourseTypeId();
	}
	
	/**
	 * Set courseTypeId
	 * 
	 * @parameter long
	 */
	public void setCourseTypeId(long courseTypeId){
		
		this.courseDefine.setCourseTypeId(courseTypeId);
	}
		
																	
			
									
		
		
							
			
		
	/**
	 * Get courseName
	 * 
	 * @return String
	 */
	public String getCourseName(){
		return (String) this.courseDefine.getCourseName();
	}
	
	/**
	 * Set courseName
	 * 
	 * @parameter String
	 */
	public void setCourseName(String courseName){
		
		this.courseDefine.setCourseName(courseName);
	}
		
															
			
									
		
		
									
			
		
	/**
	 * Get schoolYear
	 * 
	 * @return String
	 */
	public String getSchoolYear(){
		return (String) this.courseDefine.getSchoolYear();
	}
	
	/**
	 * Set schoolYear
	 * 
	 * @parameter String
	 */
	public void setSchoolYear(String schoolYear){
		
		this.courseDefine.setSchoolYear(schoolYear);
	}
		
													
			
									
		
		
											
			
		
	/**
	 * Get teachingMode
	 * 
	 * @return String
	 */
	public String getTeachingMode(){
		return (String) this.courseDefine.getTeachingMode();
	}
	
	/**
	 * Set teachingMode
	 * 
	 * @parameter String
	 */
	public void setTeachingMode(String teachingMode){
		
		this.courseDefine.setTeachingMode(teachingMode);
	}
		
											
			
									
		
		
													
			
		
	/**
	 * Get chargingMode
	 * 
	 * @return String
	 */
	public String getChargingMode(){
		return (String) this.courseDefine.getChargingMode();
	}
	
	/**
	 * Set chargingMode
	 * 
	 * @parameter String
	 */
	public void setChargingMode(String chargingMode){
		
		this.courseDefine.setChargingMode(chargingMode);
	}
		
									
			
									
		
		
															
			
		
	/**
	 * Get status
	 * 
	 * @return String
	 */
	public String getStatus(){
		return (String) this.courseDefine.getStatus();
	}
	
	/**
	 * Set status
	 * 
	 * @parameter String
	 */
	public void setStatus(String status){
		
		this.courseDefine.setStatus(status);
	}
		
							
			
									
		
		
																	
			
		
	/**
	 * Get remarks
	 * 
	 * @return String
	 */
	public String getRemarks(){
		return (String) this.courseDefine.getRemarks();
	}
	
	/**
	 * Set remarks
	 * 
	 * @parameter String
	 */
	public void setRemarks(String remarks){
		
		this.courseDefine.setRemarks(remarks);
	}
		
					
			
									
		
		
																				
			
					
			
		
	/**
	 * Get courseTypeName
	 * 
	 * @return String
	 */
	public String getCourseTypeName(){
		
		return (String) this.courseDefine.getCourseTypeName();
			
	}
	
					
		
			
			
			
			
			
			
			
			
			
			
			
	
	public int hashCode() {
   		return org.apache.commons.lang.builder.HashCodeBuilder.reflectionHashCode(this);
 	}
	
		
	public boolean equals(Object obj) {
		if (obj == null) {
            return false;
        } // end if

        if ((obj instanceof CourseDefineBean) == false) {
            return false;
        } // end if

        CourseDefineBean other = (CourseDefineBean) obj;
        
        boolean isEqual = false;
        
                
        com.ourteam.education.dao.CourseDefine tempCourseDefine = other.convertToCourseDefine();
        
        if(tempCourseDefine == null || this.courseDefine == null){
        	isEqual = false;
        }
        else if(tempCourseDefine == this.courseDefine || tempCourseDefine.equals(this.courseDefine) ){
        	isEqual = true;
        }
        else{
        	isEqual = false;
        }
        
        return isEqual;
	}
	
	
	public static CourseDefineBean[] toArray(com.ourteam.education.dao.CourseDefine[] aCourseDefines){
		
		return toArray(aCourseDefines,null);
	}
	
	public static CourseDefineBean[] toArray(com.ourteam.education.dao.CourseDefine[] aCourseDefines , IDataPopulateCallback aCallBack){
		 
		 if(ArrayUtils.isEmpty(aCourseDefines)){
		 	return new CourseDefineBean[0];
		 }
		 
		 int length = aCourseDefines.length;
		 
		 CourseDefineBean[] beans = new CourseDefineBean[length];
		  
		 for (int i = 0; i < length; i++) {
			beans[i] = new CourseDefineBean(aCourseDefines[i]);
			if(aCallBack != null){
			    aCallBack.populate(beans[i],new Object[]{aCourseDefines[i]});
			}
		 }
		 
		 return beans;
	 }
	 
	 	 
}